package pub.wkq.springboot.repository;

import pub.wkq.springboot.pojo.Ingredient;

import java.util.Optional;

/**
 * @author 王开琦
 */
public interface IngredientRepository {
    Iterable<Ingredient> findAll();

    Optional<Ingredient> findById(String id);

    Ingredient save(Ingredient ingredient);
}
